<template>
  <section>
    <el-tabs v-model="tabPage" @tab-click="selTabPage">
      <el-tab-pane label="体检定义" name="first">
        <examine-define v-if=" tabPage==='first'"></examine-define>
      </el-tab-pane>
      <el-tab-pane label="体检项目" name="second">
        <examine-type v-if=" tabPage==='second'"></examine-type>
      </el-tab-pane>
      <el-tab-pane label="报告模板" name="third">
        <report-template v-if=" tabPage==='third'"></report-template>
      </el-tab-pane>
    </el-tabs>
  </section>
</template>

<script>
  import reportTemplate from '@/components/reportTemplate/index'
  import examineDefine from './examineDefine/index'
  import examineType from './examineType/index'
  export default {
    name: "index",
    components:{examineDefine,examineType,reportTemplate},
    data(){
      return{
        tabPage:'first'
      }
    },
    methods:{
      selTabPage(t,e){
        this.tabPage=t.name
      }
    }
  }
</script>

<style scoped>

</style>
